package com.geekstudy.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.geekstudy.serialize.DemoBigDecimalSerialize;

import java.math.BigDecimal;

public class DemoBigDecimalBean {

    private BigDecimal demo1;

    private String demo1ToString;

    private String demo1StringOf;

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private BigDecimal demo2;

    private BigDecimal demo3;

    @JsonSerialize(using = DemoBigDecimalSerialize.class)
    private BigDecimal demo4;

    public BigDecimal getDemo1() {
        return demo1;
    }

    public void setDemo1(BigDecimal demo1) {
        this.demo1 = demo1;
    }

    public String getDemo1ToString() {
        return demo1ToString;
    }

    public void setDemo1ToString(String demo1ToString) {
        this.demo1ToString = demo1ToString;
    }

    public String getDemo1StringOf() {
        return demo1StringOf;
    }

    public void setDemo1StringOf(String demo1StringOf) {
        this.demo1StringOf = demo1StringOf;
    }

    public BigDecimal getDemo2() {
        return demo2;
    }

    public void setDemo2(BigDecimal demo2) {
        this.demo2 = demo2;
    }

    public BigDecimal getDemo3() {
        return demo3;
    }

    public void setDemo3(BigDecimal demo3) {
        this.demo3 = demo3;
    }

    public BigDecimal getDemo4() {
        return demo4;
    }

    public void setDemo4(BigDecimal demo4) {
        this.demo4 = demo4;
    }
}
